﻿<Window x:Class="YSCommander.SectionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Section" Height="149" Width="300" ShowInTaskbar="False" ResizeMode="NoResize" 
		WindowStartupLocation="CenterOwner"
        Loaded="Window_Loaded" Icon="/YSCommander;component/YSCommander.ico">
    
    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="Margin" Value="5" />
            <Setter Property="Width" Value="55" />
        </Style>
    </Window.Resources>
    
    <DockPanel LastChildFill="False">
        <Label DockPanel.Dock="Top" TabIndex="0" Target="{Binding ElementName=textBoxName}">_Name:</Label>

        <TextBox DockPanel.Dock="Top" Name="textBoxName" Margin="15,5" Text="{Binding SectionName}" 
                 TabIndex="1" TextChanged="textBoxName_TextChanged" />

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" DockPanel.Dock="Bottom">
            <Button Name="buttonOK" IsDefault="True" Click="buttonOK_Click" TabIndex="2" IsEnabled="False">OK</Button>
            <Button IsCancel="True" TabIndex="3">Cancel</Button>
        </StackPanel>
    </DockPanel>
</Window>
